getLastRow() Method |
This method returns the row object of the last row.
Syntax
xgridId.getLastRow( )
Parameters
No parameters.
Return Value
Returns a row object. For details, see row object. Returns null when the row is not found.
Remarks
One of the properties of the rowObject isrow. This property contains the HTML node of the row. However, this HTML is not always available for all rows. For some rowObjectsrowandrowFreezeColumnare null.
In combination withgetFirstRow(),getPreviousRow(),getRow(),getNextRow(),getLastRow(), it is possible to traverse through all the rows. All these methods return a row object that can be used as a parameter for this method.
Example
To view an example, see getFirstRow().
See Also
xgrid, getFirstRow(), getPreviousRow(), getRow(), getFirstRow(), row object, cell object